/* 游戏上传页面专用样式 */

.upload-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}

.upload-header {
  text-align: center;
  margin-bottom: 30px;
}

.upload-title {
  font-size: 28px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.upload-description {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.upload-form {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 30px;
}

.form-section {
  margin-bottom: 30px;
}

.form-section-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gray-color);
}

/* 文件上传区域 */
.upload-dropzone {
  border: 2px dashed var(--gray-color);
  border-radius: var(--border-radius);
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background-color: var(--light-color);
  margin-bottom: 20px;
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
  border-color: var(--primary-color);
  background-color: rgba(255, 109, 63, 0.05);
}

.upload-icon {
  font-size: 48px;
  color: var(--text-light);
  margin-bottom: 15px;
}

.file-selected {
  display: flex;
  align-items: center;
  background-color: var(--light-color);
  padding: 10px 15px;
  border-radius: var(--border-radius);
  margin-top: 15px;
}

.file-name {
  flex-grow: 1;
  margin-right: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-size {
  color: var(--text-light);
  font-size: 14px;
  margin-right: 10px;
}

.file-remove {
  background: none;
  border: none;
  color: var(--danger-color);
  cursor: pointer;
  font-size: 16px;
}

/* 上传进度条 */
.progress-wrapper {
  margin: 20px 0;
}

.progress-container {
  height: 8px;
  background-color: var(--gray-color);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-bar {
  height: 100%;
  background-color: var(--primary-color);
  width: 0;
  transition: width 0.3s ease;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-light);
}

/* 缩略图上传和预览 */
.thumbnail-preview {
  width: 100%;
  max-width: 240px;
  height: 160px;
  border-radius: var(--border-radius);
  background-color: var(--light-color);
  margin: 15px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.thumbnail-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail-placeholder {
  color: var(--text-light);
  font-size: 14px;
  text-align: center;
}

/* 表单控件 */
.input-group {
  margin-bottom: 20px;
}

.checkbox-group {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.checkbox-group input[type="checkbox"] {
  margin-right: 10px;
}

/* 游戏分类选择 */
.category-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.category-option {
  padding: 8px 15px;
  border-radius: 20px;
  background-color: var(--light-color);
  border: 1px solid var(--gray-color);
  cursor: pointer;
  transition: var(--transition);
}

.category-option:hover {
  border-color: var(--primary-color);
}

.category-option.selected {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* 上传按钮和操作区 */
.form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  flex-wrap: wrap;
  gap: 15px;
}

.upload-tips {
  background-color: rgba(74, 144, 226, 0.1);
  border-left: 4px solid var(--secondary-color);
  padding: 15px;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  margin: 20px 0;
}

.tips-title {
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.tips-list {
  list-style: disc;
  padding-left: 20px;
}

.tips-list li {
  margin-bottom: 8px;
}

/* 上传成功信息 */
.upload-success {
  text-align: center;
  padding: 30px;
  background-color: rgba(102, 187, 106, 0.1);
  border-radius: var(--border-radius);
  margin-top: 20px;
}

.success-icon {
  font-size: 60px;
  color: var(--success-color);
  margin-bottom: 20px;
}

.success-title {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--success-color);
}

.success-message {
  margin-bottom: 20px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.game-link {
  display: inline-block;
  margin-top: 15px;
  font-weight: 500;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .upload-form {
    padding: 20px;
  }
  
  .form-actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .form-actions button {
    width: 100%;
  }
} 